import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import echarts from '@/plugins/echarts.js' // 使用开发插件

// 引用css
import '@/assets/css/base.css'

Vue.use(ElementUI)
Vue.use(echarts)

// 进入页面先回到顶部
router.afterEach((to, from) => {
  window.scrollTo(0, 0)
})

Vue.config.productionTip = false
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
